package cn.car91.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import cn.car91.R;
import cn.car91.activity.AroundMainActivity;
import cn.car91.activity.ArticleMainActivity;
import cn.car91.activity.BoxMainActivity;
import cn.car91.activity.ExposureMainActivity;
import cn.car91.activity.IllegalMainActivity;
import cn.car91.activity.MainActivity;
import cn.car91.activity.RepairShopMainActivity;
import cn.car91.activity.WashShopMainActivity;

public class FooterView extends LinearLayout {

    public interface Item {
        final int CB_INDEX_index = 0;//主页
        final int CB_INDEX_washshop = 1;//洗车
        final int CB_INDEX_repairshop = 2;//修车
        final int CB_INDEX_box = 3;//百宝箱
        final int CB_INDEX_article = 4;//保养
        final int CB_INDEX_exposure = 5;//曝光
        final int CB_INDEX_illegal = 6;//违章
        final int CB_INDEX_around = 7;//地图
    }

    public interface ItemClass {
        final Class CB_INDEX_index = MainActivity.class;
        final Class CB_INDEX_washshop = WashShopMainActivity.class;
        final Class CB_INDEX_repairshop = RepairShopMainActivity.class;
        final Class CB_INDEX_article = ArticleMainActivity.class;
        final Class CB_INDEX_illegal = IllegalMainActivity.class;
        final Class CB_INDEX_around = AroundMainActivity.class;
        final Class CB_INDEX_exposure = ExposureMainActivity.class;
        final Class CB_INDEX_box = BoxMainActivity.class;
    }
    //View view = null;

    public FooterView(Context context) {
        super(context);
        init();
    }

    public FooterView(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        init();
    }

    private void init() {
        LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        inflater.inflate(R.layout.view_footer, this);
    }
}
